import pandas as pd

df9 = pd.read_csv('stock.txt', parse_dates=['交易日'], encoding='cp936', sep='\s+', index_col='交易日')

print(df9)
print(df9.index)
